﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ef.ServiceInterface;

namespace ef.ServiceImplement
{
    public class CategoryService : ServiceBase, ICategoryService
    {
        DataProvider.ICategoryRepository iCategoryRepository = null;
        public CategoryService()
        {
            iCategoryRepository = (SQLServerProvider.CategoryRepository)base.LoadRepository("ef.SQLServerProvider.CategoryRepository");
        }
        #region ICategoryService 成员

        public IList<Entity.Category> GetCategory()
        {
            return iCategoryRepository.GetModel().ToList();
        }

        #endregion
    }
}
